package com.douyang.controller;

import com.douyang.base.model.Result;
import com.douyang.service.VideoInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaoma
 * @since 2025-02-27
 */
@RestController
@RequestMapping("/video/videoInfo")
public class VideoInfoController {

    @Autowired
    private VideoInfoService videoInfoService;

    @GetMapping("/checkVideoExist")
    public Result<Boolean> checkVideoExist(String videoMd5) {
        return Result.success(videoInfoService.checkVideoExist(videoMd5));
    }
}
